package com.testapp.bluetoothtest08.cipher.entity.user;

import java.math.BigInteger;
import java.util.ArrayList;

public class UserPrivateData {
    public ArrayList<BigInteger> secList = new ArrayList<>();
    public BigInteger c;        //public Key
    public BigInteger p;        //private Key

    //phase 1 GM Data
    public BigInteger a,y,t2;

    //Above this line is the long-term data
    //上方都是长期数据
    public UserPrivateData(){

    }

    public UserPrivateData(UserPrivateDataStr userData){
        for(int i=0;i<userData.secList.size();i++){
            this.secList.add(new BigInteger(userData.secList.get(i)));
        }
        this.c = new BigInteger(userData.c);
        this.p = new BigInteger(userData.p);
        this.a = new BigInteger(userData.a);
        this.y = new BigInteger(userData.y);
        this.t2 = new BigInteger(userData.t2);
    }

}
